<?php

class Promotion extends Module
{
	function __construct ($db){
		$this->set_db($db);
	}

	function get_all_promotion(){
		return $this->get_all("promotion");
	}

	function get_promotion($id){
		return $this->get("promotion", "id='$id'");
	}

	function get_min(){
		return $this->db->minOf("id","promotion",1);
	}
}

?>